package cn.doctorpda.conference.ui.splash;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.PersistableBundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;

import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

import cn.doctorpda.conference.R;
import cn.doctorpda.conference.event.GetMessage;
import cn.doctorpda.conference.ui.BaseActivity;
import cn.doctorpda.conference.utils.AESUtil;

/**
 * Created by huangjinlong on 2016/5/13.
 */
public class SplashActivity extends BaseActivity {

    private Bundle extras;

    @Override
    protected Fragment createFragment() {

        extras=getIntent().getExtras();

        return SplashFragment.newInstance(extras);
    }

    @Override
    public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);


    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_base;
    }


}
